﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Guoc.BigMall.Infrastructure.WeChat.Entitys
{
    /// <summary>
    ///  回复空字符串，微信不作任何处理
    /// </summary>
   public class ResponseMessageEmptyText:ResponseMessage
    {
       public ResponseMessageEmptyText(string toUserName, string fromUserName)
       {
           this.ToUserName = ToUserName;
           this.FromUserName = fromUserName;
           this.CreateTime = ConvertDateTimelong(DateTime.Now);
           this.MsgType =getTextMessage();
       }
       public ResponseMessageEmptyText(RequestMessage requestMessage):this(requestMessage.FromUserName,requestMessage.ToUserName)
       {
           
       }

       public ResponseMessageEmptyText() { }
       public override string ToString()
       {
           //StringBuilder xml = new StringBuilder();
           //xml.Append("<xml>");
           //xml.AppendFormat("<ToUserName><![CDATA[{0}]]></ToUserName>", this.FromUserName);
           //xml.AppendFormat("<FromUserName><![CDATA[fromUser]]></FromUserName>", this.ToUserName);
           //xml.AppendFormat("<CreateTime>{0}</CreateTime>", this.CreateTime);
           //xml.Append("<MsgType><![CDATA[text]]></MsgType>");
           //xml.AppendFormat("<Content><![CDATA[{0}]]></Content>", string.Empty);
           //xml.Append("</xml>");

           //return xml.ToString();
           return "";
       }
    }
}
